package com.cratos.xxgram.platf.friend;

import javax.persistence.*;
import com.cratos.xxgram.platf.base.BaseEntity;
import org.redkale.util.Comment;

/**
 *
 * @author zhangjx
 */
@Table(comment = "应答好友表")
public class FriendAnswer extends BaseEntity {
    
    @Comment("同意")
    public static transient final short ACCEPT = 10;
    
    @Comment("拒绝")
    public static transient final short REJECT = 20;
    
    @Comment("忽略")
    public static transient final short IGNORE = 30;
    
    @Id
    @Column(length = 64, comment = "userid+“-”+friendid+“-”+create36time ")
    private String friendaskid = "";

    @Column(comment = "用户ID")
    private int userid;

    @Column(comment = "被邀好友ID")
    private int friendid;

    @Column(comment = "应答结果; 10:同意; 20:拒绝; 30忽略")
    private short answer;

    @Column(updatable = false, comment = "应答时间")
    private long createtime;

    public void setFriendaskid(String friendaskid) {
        this.friendaskid = friendaskid;
    }

    public String getFriendaskid() {
        return this.friendaskid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getUserid() {
        return this.userid;
    }

    public void setFriendid(int friendid) {
        this.friendid = friendid;
    }

    public int getFriendid() {
        return this.friendid;
    }

    public void setAnswer(short answer) {
        this.answer = answer;
    }

    public short getAnswer() {
        return this.answer;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    public long getCreatetime() {
        return this.createtime;
    }
}
